home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 047a / atibld59.zip / INSTALL.BAT next >
DOS Batch File  |  1993-02-23  |  6KB  |  142 lines

  1. echo off
  2. rem   February 23, 1993  Build 59
  3. cls
  4. if ()==(%1) goto NO_ARG
  5. if (net)==(%2) goto NET
  6. if (NET)==(%2) goto NET
  7. if not exist %1\SYSTEM\SETUP.INF goto BADDIR
  8. goto DO_IT
  9. :NET
  10. if not exist %1\WIN.COM goto BADDIR
  11. goto DO_IT
  12. :NO_ARG
  13. cls
  14. echo 
  15. echo                       ┌────────────────────────────────┐
  16. echo                       │** MACH32 Windows 3.1 Drivers **│
  17. echo                       │************ Build 59 **********│
  18. echo                       └────────────────────────────────┘
  19. echo  
  20. echo                This  batch file needs to know where your Windows
  21. echo                directory is located in order to properly install
  22. echo                the drivers.
  23. echo  
  24. echo                    ┌┬────────────────────────────────────┬┐
  25. echo                    ││ Usage: INSTALL [Windows Directory] ││
  26. echo                    └┴────────────────────────────────────┴┘
  27. echo                          Example: INSTALL C:\WINDOWS
  28. goto DONE
  29. :BADDIR
  30. cls
  31. echo 
  32. echo                        ┌────────────────────────────────┐
  33. echo                        │** MACH32 Windows 3.1 Drivers **│
  34. echo                        │************ Build 59 **********│
  35. echo                        └────────────────────────────────┘
  36. echo  
  37. echo                      ERROR: INVALID PATH "%1"
  38. echo  
  39. echo               The path you specified in either incorrect or does
  40. echo               not exist.  Please  check the path to your Windows
  41. echo               directory and try again.  If  you continue to have
  42. echo               difficulty,  please  call ATI Customer Support for
  43. echo               assistance.
  44. echo  
  45. echo                    ┌┬────────────────────────────────────┬┐
  46. echo                    ││ Usage: INSTALL [Windows Directory] ││
  47. echo                    └┴────────────────────────────────────┴┘
  48. echo                          Example: INSTALL C:\WINDOWS
  49. goto DONE
  50. :DO_IT
  51. cls
  52. echo                        ┌────────────────────────────────┐
  53. echo                        │** MACH32 Windows 3.1 Drivers **│
  54. echo                        │************ Build 59 **********│
  55. echo                        └────────────────────────────────┘
  56. echo  
  57. echo                    This batch file will conveniently extract
  58. echo                    the  MACH32  Windows 3.1 drivers  to
  59. if (NET)==(%2) goto NETW
  60. if (net)==(%2) goto NETW
  61. echo                    your Windows system directory.
  62. goto NEXT
  63. :NETW
  64. echo                    your Personal Network Windows Directory.
  65. :NEXT
  66. echo                   ┌─────────────────────────────────────────┐
  67. echo                   │ If you are prompted to overwrite a file │
  68. echo                   │             press Y  for YES            │
  69. echo                   └─────────────────────────────────────────┘
  70. echo  
  71. echo                   Press any key to continue the installation
  72. echo                             or CONTROL-C to abort.
  73. echo 
  74. pause >nul
  75. cls
  76. echo                        ┌────────────────────────────────┐
  77. echo                        │** MACH32 Windows 3.1 Drivers **│
  78. echo                        │************ Build 59 **********│
  79. echo                        └────────────────────────────────┘
  80. echo  
  81. echo Decompressing . . .
  82. if (NET)==(%2) goto NETWORK
  83. if (net)==(%2) goto NETWORK
  84. windrvrs /e%1\SYSTEM
  85. if errorlevel == 0 goto NEXT0
  86. goto ERROR
  87. :NEXT0
  88. winpanel /e%1
  89. if errorlevel ==0 goto OK
  90. goto ERROR
  91. :NETWORK
  92. windrvrs /e%1
  93. if errorlevel == 0 goto NEXTT
  94. goto ERROR
  95. :NEXTT
  96. winpanel /e%1
  97. if errorlevel == 0 goto OK
  98. goto ERROR
  99. :OK
  100. echo 
  101. pause
  102. cls
  103. echo                        ┌────────────────────────────────┐
  104. echo                        │** MACH32 Windows 3.1 Drivers **│
  105. echo                        │************ Build 59 **********│
  106. echo                        └────────────────────────────────┘
  107. echo                              ────────────────────
  108. echo                          ╒══════════════════════════╕
  109. echo                          │ Installation successful! │
  110. echo                          ╘══════════════════════════╛
  111. echo  
  112. echo           The first step of the Windows 3.1 drivers is now complete.
  113. echo           The next  step is to tell  Windows  to  use these drivers.
  114. echo           Please read  the README.1ST file for further instructions.
  115. goto DONE
  116. :ERROR
  117. cls
  118. echo                        ┌────────────────────────────────┐
  119. echo                        │** MACH32 Windows 3.1 Drivers **│
  120. echo                        │************ Build 59 **********│
  121. echo                        └────────────────────────────────┘
  122. echo                            ────────────────────
  123. echo                           ╒═════════════════════╕
  124. echo                           │ Installation Failed │
  125. echo                           ╘═════════════════════╛
  126. echo     
  127. echo     An error has been reported decompressing the Windows drivers.  This may
  128. echo     be due  to problems  accessing the  specified directory,  low free disk
  129. echo     space, or the archive is corrupt.  First, ensure the path you specified
  130. echo     is correct.  Second, run the DOS CHKDSK utility on your hard drive.  If
  131. echo     CHKDSK reports errors, correct the errors before continuing. Also, make
  132. echo     certain you have at least 4 Meg of free disk space available.
  133. echo     
  134. echo     If you  continue to  have  problems,  you  may  wish  to  try  manually
  135. echo     installing the drivers or  contact ATI Customer Support.  Manual driver
  136. echo     installation instructions are in README.1ST.
  137. :DONE
  138. echo  
  139. echo               ATI Customer Support: (416) 756-0711 9am-5:30pm
  140. echo                                FAX: (416) 756-0720
  141. echo                         Compuserve: GO ATITECH
  142.